<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@include file="/include.jsp"%>
<link href="${ctx}/css/style.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/css/table.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/dwz/themes/default/style.css" rel="stylesheet" type="text/css" media="screen" />
<link href="${ctx}/dwz/themes/css/core.css" rel="stylesheet" type="text/css" media="screen" />
<table border="0" cellpadding="0" cellspacing="0" class="table_border">
    <tr>
        <td>
            <table width="100%" border="0" cellpadding="0" cellspacing="0"
                   class="table_padding">
                <tr>
                    <td>
                        <table align="left">
                            <tr>
                                <td width="50px"><a class="button" href="add.jsp"><span>添加</span></a>
                                </td>
                                <td width="50px"><a class="button" href="edit.jsp"><span>修改</span></a>
                                </td>
                                <td width="50px"><a class="button"
                                                    href="javascript:void(0);"><span>删除</span></a></td>
                                <td width="50px">
                                <nobr><input type="text" id="" name="" placeholder="按班级名称查询"/></nobr></td>
                                <td><a class="button" href="query.jsp"><span>查询</span></a></td>
                                
                            </tr>
                        </table>
                    </td>
                    <td width="25" height="26" align="right"></td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td align="center">
            <table border="1" cellpadding="0" cellspacing="0" id="box_num_table2"
                   class="box_num_table">
                <thead>
                <tr  bgcolor="white">
                    <td><input type="checkbox"  onclick="checkAll(this)"/></td>
                    <td>班级名称</td>
                    <td>班长</td>
                    <td>教师</td>
                    <td>班级人数</td>
                    <td>负责学管</td>
                    <td>创建日期</td>
                    <td>最近修改日期</td>
                    
                </tr>
                </thead>
                <tbody>
                <tr  bgcolor="white">
                    <td><input class="aaa" type="checkbox" /></td>
                    <td>1601</td>
                    <td>女娲</td>
                    <td>女娲</td>
                    <td>18</td>
                    <td>应龙</td>
                    <td>2016/12/12</td>
                    <td>2017/01/04</td>
                  
                </tr>
                <tr  bgcolor="white">
                    <td><input class="aaa" type="checkbox" /></td>
                    <td>1602</td>
                    <td>嫦娥</td>
                    <td>嫦娥</td>
                    <td>22</td>
                    <td>吴刚</td>
                    <td>2016/12/12</td>
                    <td>2017/01/04</td>
                 
                </tr>
                <tr  bgcolor="white">
                    <td><input class="aaa" type="checkbox" /></td>
                    <td>1603</td>
                    <td>琼霄</td>
                    <td>琼霄</td>
                    <td>22</td>
                    <td>吴刚</td>
                    <td>2016/12/12</td>
                    <td>2017/01/04</td>
                 
                </tr>
                <tr  bgcolor="white">
                    <td><input class="aaa" type="checkbox" /></td>
                    <td>1604</td>
                    <td>嫦娥1号</td>
                    <td>嫦娥1号</td>
                    <td>22</td>
                    <td>吴刚</td>
                    <td>2016/12/12</td>
                    <td>2017/01/04</td>
                 
                </tr>
                <tr  bgcolor="white">
                    <td><input class="aaa" type="checkbox" /></td>
                    <td>1605</td>
                    <td>嫦娥2号</td>
                    <td>嫦娥2号</td>
                    <td>22</td>
                    <td>吴刚</td>
                    <td>2016/12/12</td>
                    <td>2017/01/04</td>
                 
                </tr>
                </tbody>
            </table>
        </td>
    </tr>
    <tr>
        <td>
            <table border="0" cellpadding="0" cellspacing="0"
                   class="table_border">
                <tr>
                    <td>
                        <table width="100%" border="0" cellpadding="0" cellspacing="0"
                               class="table_padding">
                            <tr>
                                <td width="8%" class="font_left">数据:120条</td>
                                <td width="12" class="font_left">第</td>
                                <td width="375" class="font_left">
                                    <input name="textfield2" type="text" size="2" maxlength="4" /> /5页
                                </td>
                                <td width="478" class="font_right">
                                    <a href="">首页</a>
                                    <a href="">上一页</a>
                                    <a href="">下一页</a>
                                    <a href="">末页</a>
                                    <a href="">刷新</a>
                                </td>
                              
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>

        </td>
    </tr>
</table>
<script type="text/javascript">


  
		 var l=$("#box_num_table2 :checkbox:not(:first)");
		var ll=$("[type=checkbox] :checkbox:not(:first):checked");
 		l.click(function(){
		
	l.each(function(){
		if(!this.checked){
			$("#box_num_table2 input[type='checkbox']:first").prop('checked',false);
			return;
		}
		
		if(l.length==ll.length){
		$("#box_num_table2 input[type='checkbox']:first").prop('checked', true);
		}
		})
		
}) 	

function checkAll(obj){
    $("#box_num_table2 input[type='checkbox']").prop('checked', $(obj).prop('checked'));
}

/* $("#box_num_table2 :checkbox:not(:first)").click(function(){
	
	$("#box_num_table2 input[type='checkbox']:first").prop('checked',false);
}) */



</script>
